<html><!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>selectionStart/End demo</title>
</head>
<body>
<h2>get selection position</h2>
<textarea id='t' style='width:200px;height:200px;'></textarea>
<button id='b'>get selection</button>
<button id='s'>forward</button>
<button id='e'>backward</button>
<script src="../../../../../../g.tbcdn.cn/kissy/k/1.3.2/seed.js" tppabs="http://g.tbcdn.cn/kissy/k/1.3.2/seed.js" data-config="{combine:true}"></script>
<script src="selection-start.js" tppabs="http://docs.kissyui.com/1.3/source/raw/demo/dom/selection-start.js"></script>
</body>
</html>